module.exports = {
    publicPath: "/",
    lintOnSave: true,
    runtimeCompiler: true,
    pages: {
        index: {
            entry: "./src/main.js",
            template: "public/index.html",
            filename: "index.html",
            title: "设计模式与算法",
        }

    },

    devServer: {
        host: "localhost",
        port: 8088,
        https: false,
        host: '0.0.0.0',
        open: true,
        proxy: {
            "/": {
                target: "http://localhost:3003", //代理地址，这里设置的地址会代替axios中设置的baseURL
                changeOrigin: true, // 如果接口跨域，需要进行这个参数配置
                ws: true,
                pathRewrite: {
                    "^/": "",
                },
            },

        },

        quiet: true,
    },

}